package com.shike.palmrejection;

import java.text.SimpleDateFormat;
import java.util.Date;

public class CalendarUtil {
    public static int timesAsCustomBackInt(long time,String like){
        SimpleDateFormat sdr = new SimpleDateFormat(like);
        String times = sdr.format(new Date(time));
        return Integer.parseInt(times);
    }

    public static String timesAsCustomBackStr(long time,String like){
        SimpleDateFormat sdr = new SimpleDateFormat(like);
        String times = sdr.format(new Date(time));
        return times;
    }
}
